From 1111378ea3a3c96f4d24248b124a0d82d205d943 Mon Sep 17 00:00:00 2001 From: Christian Limpach Date: Mon, 5 Mar 2007 11:17:52 +0000 Subject: [PATCH] [xen] Fix deferred mmu op logic on invalidate shadow ldt. On domain destroy, put_page_from_l1e is called on a domain which is not current. Signed-off-by: Christian Limpach --- xen/arch/x86/mm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index d7cd042086..81bea072c5 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -424,7 +424,10 @@ void invalidate_shadow_ldt(struct vcpu *v) } /* Dispose of the (now possibly invalid) mappings from the TLB. */ - queue_deferred_ops(v->domain, DOP_FLUSH_TLB | DOP_RELOAD_LDT); + if ( v == current ) + queue_deferred_ops(v->domain, DOP_FLUSH_TLB | DOP_RELOAD_LDT); + else + flush_tlb_mask(v->domain->domain_dirty_cpumask); } -- 2.30.2